package cn.jorian.framework.service.impl;

import cn.jorian.framework.bean.SongBean;
import cn.jorian.framework.repository.SongRepository;
import cn.jorian.framework.service.ISongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SongServiceImpl implements ISongService {

    @Autowired
    private SongRepository songRepository;

    @Override
    public List<SongBean> findByName(String name) {
        return songRepository.findByName(name);
    }

    @Override
    public SongBean save(SongBean bean) {
        return songRepository.save(bean);
    }
}
